package com.jkwzms.base.price.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jkwzms.base.price.entity.PriceModel;
import com.jkwzms.base.price.repository.PriceRepository;
import com.jkwzms.common.inject.annotation.BaseComponent;
import com.jkwzms.common.service.BaseService;

@Service
public class PriceService extends BaseService<PriceModel, Long> {
    
    @Autowired
    @BaseComponent
    private PriceRepository priceRepository;
    
    public List<PriceModel> getByPid(Long pid){
        return priceRepository.findToPid(pid);
        
    }
}
